set(hacks_base_srcs
        ev_async.cpp
        ev_async.h
        ev_fd.hpp
        ev_loop.cpp
        ev_loop.h
        ev_timer.cpp
        ev_timer.h
        ev_utils.cpp
        ev_utils.h
        #future.h
        hacks_conf.h
        spin_lock.cpp
        spin_lock.h
        )

add_library(hacks-base ${hacks_base_srcs})

target_link_libraries(hacks-base pthread uv)

install(TARGETS hacks-base DESTINATION lib)

file(GLOB HEADERS "*.h")
install(FILES ${HEADERS} DESTINATION include/hacks/base)

